package com.example.controller;

import com.example.service.CountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @Description: 用户管理接口数据
 * @Author: luog
 * @Date: 2024/11/27
 */
@RestController
@RequestMapping("/count/")
@Api(tags = "用户管理接口数据")
public class CountController {

    @Resource
    private CountService countService;

    @GetMapping("/getCount")
    @ApiOperation(value = "获取所有用户")
    public Integer getCount(HttpServletRequest hsr) {
        return countService.getCount(hsr);
    }


}
